package org.fnzn.biz;

import org.fnzn.bean.SysPara;
import org.fnzn.dao.SysParaMapper;
import org.springframework.stereotype.Service;
import org.fnzn.util.DateTools;
@Service
public class SysParaBiz extends BaseBiz<SysParaMapper, SysPara> {
	
	 	@Override
	    public void insert(SysPara entity) {
	 		entity.setMtnDate(DateTools.getCurrentSysData(DateTools.DEFAULT_FORMAT));
	        mapper.insert(entity);
	    }

	    @Override
	    public void insertSelective(SysPara entity) {
	    	entity.setMtnDate(DateTools.getCurrentSysData(DateTools.DEFAULT_FORMAT));
	        mapper.insertSelective(entity);
	    }
	    @Override
	    public void updateSelectiveById(SysPara entity) {
	    	entity.setMtnDate(DateTools.getCurrentSysData(DateTools.DEFAULT_FORMAT));
	        mapper.updateByPrimaryKeySelective(entity);
	    }
}
